﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Utilities
{
    public static class StringExtensions
    {
        public static string AsTitleCase(this string s)
        {
            var textInfo = Thread.CurrentThread.CurrentCulture.TextInfo;          
            var result  = textInfo.ToLower(s);
            result = textInfo.ToTitleCase(result);

            return result;
        }

    }
}
